
#@layout()
#define content()
<style>

	.form-row {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		margin-right: -5px;
		margin-left: -5px;
	}

</style>
<div class="content-wrapper">

    <section class="content-header">
        <!--<h1>
                        编辑/新增
            <small>Edit</small>
        </h1>-->
	</section>

    <section class="content">

		<div class="box box-primary">

			<div style="text-align: center;margin-bottom: 30px;margin-top: 30px;">
				<h3>语言 : #(entry.language ??)</h3>
			</div>

			<div style="margin-left: 20px;margin-right: 20px;">

				<div class="col-12 right-list">

					<div class="tab-content">
						<div class="tab-pane active" id="tab1">
							<form onsubmit="return submitdata('report_true');">
								<table class="table form2">
									<tbody>
									<tr>
										<td>航空器注册号<span class="red">*</span></td>
										<td>
											<input readonly  type="text" value="#(entry.aircraft_registration_number ??)" id="aircraft_registration_number"
												   class="form-control" data-toggle="tooltip" data-placement="bottom"
												   title="" data-original-title="航空器注册号，如果是军方飞机请输入机尾编号">
										</td>
										<td></td>
										<td></td>
									</tr>
									<tr>
										<td>航空运营人</td>
										<td>
											<input readonly  type="text" value="#(entry.air_operator ??)" id="air_operator" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" title=""
												   data-original-title="此航空器所属的航空公司">
										</td>
										<td>报告编号</td>
										<td>
											<input readonly  type="text" id="report_number" class="form-control"
												   value="#(entry.report_number ??)" disabled="" data-toggle="tooltip"
												   data-placement="bottom" title=""
												   data-original-title="报告编号是对航空器合格证持有人提交的使用困难报告的编号，该编号针对每一份使用困难报告是唯一的标识">
										</td>
									</tr>
									</tbody>
								</table>
								<h4 class="title-bar">基本信息</h4>
								<table class="table form2">
									<tbody>
									<tr>
										<td>运行种类</td>
										<td>
											<input readonly  type="text" value="#(entry.type_operation ??)" id="type_operation" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" title=""
												   data-original-title="指航空器执行任务的种类，包括“定期航班”、“特定任务”、“其它”">
										</td>
										<td>航班代码</td>
										<td>
											<input readonly  type="text" value="#(entry.flight_code ??)" id="flight_code" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" title=""
												   data-original-title="指航空器执行此航班过程中发生或发现的故障/缺陷">
										</td>
										<td>发生日期<span class="red">*</span></td>
										<td>
											<input readonly  type="input" value="#(entry.date_occurrence ??)" id="date_occurrence" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" title=""
												   data-original-title="指故障/缺陷发生或发现的日期，填写形式：年－月－日" lay-key="1">
										</td>
									</tr>
									<tr>
										<td>发生阶段<span class="red">*</span></td>
										<td>
											<select id="occurrence_stage" class="form-control">
												<option value="#(entry.occurrence_stage ??)">#(entry.occurrence_stage ??)</option>
											</select>
										</td>
										<td>发生地点<span class="red">*</span></td>
										<td>
											<input readonly  type="text" value="#(entry.place_occurrence ??)" id="place_occurrence" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" title=""
												   data-original-title="指故障/缺陷发生或第一次被发现的地点">
										</td>
										<td>飞机型号<span class="red">*</span></td>
										<td>
											<input readonly type="text" value="#(entry.model ??)" id="model" class="form-control">
										</td>
									</tr>
									<tr>
										<td>章节</td>
										<td colspan="5">
											<div class="form-row">
												<div class="col">
													<input readonly  type="text" value="#if(entry) #(entry.chapter.split(",",-1)[0] ??) #end" id="chapter1" class="form-control"
														   data-toggle="modal" data-target="#myModal"
														   data-placement="bottom">
												</div>
												<div class="col">
													<input readonly  type="text" value="#if(entry) #(entry.chapter.split(",",-1)[1] ??) #end" id="chapter2" class="form-control"
														   data-toggle="modal" data-target="#myModal"
														   data-placement="bottom">
												</div>
												<div class="col">
													<input readonly  type="text" value="#if(entry) #(entry.chapter.split(",",-1)[2] ??) #end" id="chapter3" class="form-control"
														   data-toggle="modal" data-target="#myModal"
														   data-placement="bottom">
												</div>
												<div class="col">
													<input readonly  type="text" value="#if(entry) #(entry.chapter.split(",",-1)[3] ??) #end" id="chapter4" class="form-control"
														   data-toggle="modal" data-target="#myModal"
														   data-placement="bottom">
												</div>
												<div class="col">
													<input readonly  type="text" value="#if(entry) #(entry.chapter.split(",",-1)[4] ??) #end" id="chapter5" class="form-control"
														   data-toggle="modal" data-target="#myModal"
														   data-placement="bottom">
												</div>
											</div>

										</td>
									</tr>
									<tr>
										<td>飞行类别<span class="red">*</span></td>
										<td colspan="4">
											<select class="form-control">
												<option value="#(entry.flight_category ??)">#(entry.flight_category ??)</option>
											</select>
										</td>
										<td></td>
									</tr>
									<tr>
										<td>故障件名称</td>
										<td colspan="4">
											<input readonly  type="text" value="#(entry.name_faulty_part ??)" id="name_faulty_part" class="form-control"
												   data-toggle="tooltip" data-placement="bottom" data-original-title=""
												   title="">
										</td>
										<td></td>
									</tr>
									<tr>
										<td>预防/紧急措施<span class="red">*</span></td>
										<td colspan="4">
											<select class="form-control">
												<option value="#(entry.prevention_emergency_measures ??)">#(entry.prevention_emergency_measures ??)</option>
											</select>
										</td>
										<td></td>
									</tr>
									<tr>
										<td>故障现象<span class="red">*</span></td>
										<td colspan="4">
											<select class="form-control">
												<option value="#(entry.fault_phenomenon ??)">#(entry.fault_phenomenon ??)</option>
											</select>
										</td>
										<td></td>
									</tr>
									<!--<tr>
										<td>规章依据<span class="red">*</span></td>
										<td colspan="4">
											<input readonly  type="text" value="#(entry.rules_regulations ??)" id="rules_regulations"
															   class="form-control" data-toggle="tooltip"
															   data-placement="bottom" data-original-title="" title=""></td>
										<td></td>
									</tr>-->
									</tbody>
								</table>
								<h4 class="title-bar">问题描述和纠正措施</h4>
								<table class="table form2">
									<tbody>
									<tr>
										<td>
                                        <textarea class="form-control">#(entry.content ??)</textarea>
										</td>
									</tr>
									</tbody>
								</table>
								<h4 class="title-bar">提交人信息</h4>
								<table class="table form2">
									<tbody>
									<tr>
										<td>提交人</td>
										<td><input readonly  type="text" value="#(entry.submitter ??)" id="submitter" class="form-control"></td>
										<td>电子邮箱</td>
										<td><input readonly  type="text" value="#(entry.mail_box ??)" id="mail_box" class="form-control"></td>
										<td>提交日期</td>
										<td><input readonly  type="input" value="#(entry.date_submission ??)" id="date_submission" class="form-control"></td>
									</tr>
									<tr>
										<td>电话</td>
										<td><input readonly  type="text" value="#(entry.phone ??)" id="phone" class="form-control"></td>
										<td>提交单位</td>
										<td><input readonly  type="text" value="#(entry.submission_unit ??)" id="submission_unit" class="form-control"></td>
										<td></td>
										<td></td>
									</tr>

									</tbody>
								</table>
							</form>
						</div>
					</div>
				</div>
			</div>

		</div>
    </section>

</div>
#end
